.level-select {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88rpx;
  padding: 0 20rpx;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left,
.navbar-right {
  width: 100rpx;
  display: flex;
  align-items: center;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-title {
  font-size: 36rpx;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.back-btn {
  width: 64rpx;
  height: 64rpx;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.back-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.back-icon {
  font-size: 32rpx;
  color: white;
  font-weight: bold;
  line-height: 1;
}

.level-scroll-container {
  flex: 1;
  padding: 20rpx;
  overflow-y: scroll;
}

.level-grid {
  flex: 1;
  padding: 20rpx;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20rpx;
}

.level-item {
  width: calc(25% - 15rpx);
  min-height: 120rpx;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15rpx;
  backdrop-filter: blur(10px);
  padding: 15rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.level-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2rpx);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.level-item.completed {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
}

.level-item.completed::after {
  content: "✓";
  position: absolute;
  top: 5rpx;
  right: 8rpx;
  color: #4CAF50;
  font-size: 20rpx;
  font-weight: bold;
}

.level-number {
  font-size: 32rpx;
  font-weight: bold;
  color: white;
  margin-bottom: 5rpx;
}

.level-title {
  font-size: 20rpx;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 3rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.level-author {
  font-size: 16rpx;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}